import request from '@/utils/request'

// 查询商户门店联系人列表
export function listStoreContact(query) {
  return request({
    url: '/merchant/storeContact/list',
    method: 'get',
    params: query
  })
}

// 查询商户门店联系人详细
export function getStoreContact(id) {
  return request({
    url: '/merchant/storeContact/' + id,
    method: 'get'
  })
}

// 新增商户门店联系人
export function addStoreContact(data) {
  return request({
    url: '/merchant/storeContact',
    method: 'post',
    data: data
  })
}

// 修改商户门店联系人
export function updateStoreContact(data) {
  return request({
    url: '/merchant/storeContact',
    method: 'put',
    data: data
  })
}

// 删除商户门店联系人
export function delStoreContact(id) {
  return request({
    url: '/merchant/storeContact/' + id,
    method: 'delete'
  })
}

// 导出商户门店联系人
export function exportStoreContact(query) {
  return request({
    url: '/merchant/storeContact/export',
    method: 'get',
    params: query
  })
}

// 查询商户门店联系人详细
export function getStoreContactByStoreNo(storeNo) {
  return request({
    url: '/merchant/storeContact/getInfoByStoreNo/' + storeNo,
    method: 'get'
  })
}